package test.enba.mq.consumer.rabbitmq.header;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class HeadersExchangeConfig {

  // 定义队列
  @Bean
  public Queue headersQueue() {
    return new Queue("headers-queue");
  }

  /*
   * 自动删除队列
   * */
  @Bean
  public Queue headersQueue2() {
    return new Queue("temp-queue2", false, false, true);
  }
}
